<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>SYMMETRY: cUnivarPolynomial&lt; T &gt; Class Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">SYMMETRY
   </div>
   <div id="projectbrief">C++LIBRARYFORSCIENTIFICCOMPUTATION</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('classcUnivarPolynomial.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pri-methods">Private Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a> &#124;
<a href="#friends">Friends</a> &#124;
<a href="classcUnivarPolynomial-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">cUnivarPolynomial&lt; T &gt; Class Template Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="univar__polynomial_8h_source.html">univar_polynomial.h</a>&gt;</code></p>
<div class="dynheader">
Collaboration diagram for cUnivarPolynomial&lt; T &gt;:</div>
<div class="dyncontent">
<div class="center"><img src="classcUnivarPolynomial__coll__graph.png" border="0" usemap="#cUnivarPolynomial_3_01T_01_4_coll__map" alt="Collaboration graph"/></div>
<map name="cUnivarPolynomial_3_01T_01_4_coll__map" id="cUnivarPolynomial_3_01T_01_4_coll__map">
</map>
</div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a4ff2b63bc58ec4ab56f270237caf6f0b"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4ff2b63bc58ec4ab56f270237caf6f0b"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>cUnivarPolynomial</b> (std::size_t tolerance=std::numeric_limits&lt; T &gt;::digits)</td></tr>
<tr class="separator:a4ff2b63bc58ec4ab56f270237caf6f0b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a967378cb72bc82a047800e9b52051ccd"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a967378cb72bc82a047800e9b52051ccd"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>cUnivarPolynomial</b> (const std::vector&lt; T &gt; &amp;coefficients, std::size_t tolerance=std::numeric_limits&lt; T &gt;::digits)</td></tr>
<tr class="separator:a967378cb72bc82a047800e9b52051ccd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa32abc2e773a74b65e960a24cf65f70b"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa32abc2e773a74b65e960a24cf65f70b"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>cUnivarPolynomial</b> (const T *data, std::size_t degree, std::size_t tolerance=std::numeric_limits&lt; T &gt;::digits)</td></tr>
<tr class="separator:aa32abc2e773a74b65e960a24cf65f70b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adbabe3b2fa5052c19f87327de092c8fb"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="adbabe3b2fa5052c19f87327de092c8fb"></a>
size_t&#160;</td><td class="memItemRight" valign="bottom"><b>size</b> () const </td></tr>
<tr class="separator:adbabe3b2fa5052c19f87327de092c8fb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad4b0b24cc9229a9b96eb71e224db8c03"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad4b0b24cc9229a9b96eb71e224db8c03"></a>
size_t&#160;</td><td class="memItemRight" valign="bottom"><b>degree</b> () const </td></tr>
<tr class="separator:ad4b0b24cc9229a9b96eb71e224db8c03"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af0fa0596f636515bcab1e2dedc2fde79"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classcUnivarPolynomial.html">cUnivarPolynomial</a>&lt; T &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcUnivarPolynomial.html#af0fa0596f636515bcab1e2dedc2fde79">derivative</a> () const </td></tr>
<tr class="separator:af0fa0596f636515bcab1e2dedc2fde79"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9eabafc8d312e0fab838de2b488c3c0f"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9eabafc8d312e0fab838de2b488c3c0f"></a>
<a class="el" href="classcUnivarPolynomial.html">cUnivarPolynomial</a>&lt; T &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>primitive</b> () const </td></tr>
<tr class="separator:a9eabafc8d312e0fab838de2b488c3c0f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adc403a66d40a9f5689089ac401a71484"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="adc403a66d40a9f5689089ac401a71484"></a>
<a class="el" href="classcUnivarPolynomial.html">cUnivarPolynomial</a>&lt; T &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>inverse</b> () const </td></tr>
<tr class="separator:adc403a66d40a9f5689089ac401a71484"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0d81e941a048c6ca649dd11d8a4cda8b"><td class="memItemLeft" align="right" valign="top">std::vector&lt; double &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcUnivarPolynomial.html#a0d81e941a048c6ca649dd11d8a4cda8b">realZeros</a> () const </td></tr>
<tr class="separator:a0d81e941a048c6ca649dd11d8a4cda8b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abd186b4aab94bf19bf33796df810785e"><td class="memItemLeft" align="right" valign="top">std::vector&lt; std::pair&lt; double, <br class="typebreak"/>
double &gt; &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcUnivarPolynomial.html#abd186b4aab94bf19bf33796df810785e">plotPoints</a> (double min, double max, double increment) const </td></tr>
<tr class="separator:abd186b4aab94bf19bf33796df810785e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a43462afe158c1ee0f24633521de68615"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a43462afe158c1ee0f24633521de68615"></a>
std::vector&lt; std::complex&lt; T &gt; &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>complexZeroes</b> () const </td></tr>
<tr class="separator:a43462afe158c1ee0f24633521de68615"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3aeaae886ae33ff00e9207847c68deb2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classcUnivarPolynomial.html">cUnivarPolynomial</a>&lt; T &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcUnivarPolynomial.html#a3aeaae886ae33ff00e9207847c68deb2">operator%=</a> (const <a class="el" href="classcUnivarPolynomial.html">cUnivarPolynomial</a> &amp;poly)</td></tr>
<tr class="separator:a3aeaae886ae33ff00e9207847c68deb2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4158585d1768e886c6802030f6ec128f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classcUnivarPolynomial.html">cUnivarPolynomial</a>&lt; T &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcUnivarPolynomial.html#a4158585d1768e886c6802030f6ec128f">operator*=</a> (const <a class="el" href="classcUnivarPolynomial.html">cUnivarPolynomial</a> &amp;poly)</td></tr>
<tr class="separator:a4158585d1768e886c6802030f6ec128f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a835d683a23b47a5bd9c1958f1f8bf814"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a835d683a23b47a5bd9c1958f1f8bf814"></a>
<a class="el" href="classcUnivarPolynomial.html">cUnivarPolynomial</a>&lt; T &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>operator*=</b> (T num)</td></tr>
<tr class="separator:a835d683a23b47a5bd9c1958f1f8bf814"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a60558f674dbadb2d18e3406f4d45da0e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classcUnivarPolynomial.html">cUnivarPolynomial</a>&lt; T &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcUnivarPolynomial.html#a60558f674dbadb2d18e3406f4d45da0e">operator/=</a> (const <a class="el" href="classcUnivarPolynomial.html">cUnivarPolynomial</a> &amp;poly)</td></tr>
<tr class="separator:a60558f674dbadb2d18e3406f4d45da0e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab638a1b793b4f96315899672e77af6e5"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab638a1b793b4f96315899672e77af6e5"></a>
<a class="el" href="classcUnivarPolynomial.html">cUnivarPolynomial</a>&lt; T &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>operator/=</b> (T divisor)</td></tr>
<tr class="separator:ab638a1b793b4f96315899672e77af6e5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a651a710f52fdd21136419d2c6fef5574"><td class="memTemplParams" colspan="2">template&lt;typename Y &gt; </td></tr>
<tr class="memitem:a651a710f52fdd21136419d2c6fef5574"><td class="memTemplItemLeft" align="right" valign="top">T&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classcUnivarPolynomial.html#a651a710f52fdd21136419d2c6fef5574">operator()</a> (const Y &amp;value) const </td></tr>
<tr class="separator:a651a710f52fdd21136419d2c6fef5574"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a54e506b4fac4647cc8aad776ba131940"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcUnivarPolynomial.html#a54e506b4fac4647cc8aad776ba131940">operator==</a> (const <a class="el" href="classcUnivarPolynomial.html">cUnivarPolynomial</a> &amp;poly) const </td></tr>
<tr class="separator:a54e506b4fac4647cc8aad776ba131940"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a936aa1a9e68b7005af72be0fbb2d91ac"><td class="memItemLeft" align="right" valign="top">std::vector&lt; <a class="el" href="classcUnivarPolynomial.html">cUnivarPolynomial</a><br class="typebreak"/>
&lt; T &gt; &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcUnivarPolynomial.html#a936aa1a9e68b7005af72be0fbb2d91ac">sturmSequence</a> () const </td></tr>
<tr class="separator:a936aa1a9e68b7005af72be0fbb2d91ac"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:ae6d336689220ead8386c08aa5e7b540b"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae6d336689220ead8386c08aa5e7b540b"></a>
static <a class="el" href="classcUnivarPolynomial.html">cUnivarPolynomial</a>&lt; T &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>zero</b> ()</td></tr>
<tr class="separator:ae6d336689220ead8386c08aa5e7b540b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-methods"></a>
Private Member Functions</h2></td></tr>
<tr class="memitem:a887727886c8d9ed3a789b10de1c50785"><td class="memItemLeft" align="right" valign="top">std::vector&lt; double &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcUnivarPolynomial.html#a887727886c8d9ed3a789b10de1c50785">solveRQuadratic</a> (std::vector&lt; double &gt; &amp;zeros) const </td></tr>
<tr class="separator:a887727886c8d9ed3a789b10de1c50785"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9203e9c2e0c7d1f4d70c13b08e37d5ff"><td class="memItemLeft" align="right" valign="top">std::vector&lt; double &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcUnivarPolynomial.html#a9203e9c2e0c7d1f4d70c13b08e37d5ff">solveRCubic</a> (std::vector&lt; double &gt; &amp;zeros) const </td></tr>
<tr class="separator:a9203e9c2e0c7d1f4d70c13b08e37d5ff"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3faca94991f37531436883070bcc7f01"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcUnivarPolynomial.html#a3faca94991f37531436883070bcc7f01">sturmSignsNo</a> (double x0) const </td></tr>
<tr class="separator:a3faca94991f37531436883070bcc7f01"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr class="memitem:a76cee4a4b33c7ca3b2b23b7310f937e0"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a76cee4a4b33c7ca3b2b23b7310f937e0"></a>
bmt::polynomial&lt; T &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>m_PolyImpl</b></td></tr>
<tr class="separator:a76cee4a4b33c7ca3b2b23b7310f937e0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a144f68114be5e7f026f40d44c8d5fedd"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a144f68114be5e7f026f40d44c8d5fedd"></a>
bmt::eps_tolerance&lt; T &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>m_Tolerance</b></td></tr>
<tr class="separator:a144f68114be5e7f026f40d44c8d5fedd"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="friends"></a>
Friends</h2></td></tr>
<tr class="memitem:ad225ad139a5ce7b6a4cb685a219ed9ab"><td class="memTemplParams" colspan="2"><a class="anchor" id="ad225ad139a5ce7b6a4cb685a219ed9ab"></a>
template&lt;class Y &gt; </td></tr>
<tr class="memitem:ad225ad139a5ce7b6a4cb685a219ed9ab"><td class="memTemplItemLeft" align="right" valign="top">std::ostream &amp;&#160;</td><td class="memTemplItemRight" valign="bottom"><b>operator&lt;&lt;</b> (std::ostream &amp;out, const <a class="el" href="classcUnivarPolynomial.html">cUnivarPolynomial</a>&lt; Y &gt; &amp;poly)</td></tr>
<tr class="separator:ad225ad139a5ce7b6a4cb685a219ed9ab"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a92998d9dc30249d38f164dc4ebc8abef"><td class="memTemplParams" colspan="2"><a class="anchor" id="a92998d9dc30249d38f164dc4ebc8abef"></a>
template&lt;class Y &gt; </td></tr>
<tr class="memitem:a92998d9dc30249d38f164dc4ebc8abef"><td class="memTemplItemLeft" align="right" valign="top">std::ostream &amp;&#160;</td><td class="memTemplItemRight" valign="bottom"><b>operator&lt;&lt;</b> (std::ostream &amp;out, const std::pair&lt; <a class="el" href="classcUnivarPolynomial.html">cUnivarPolynomial</a>&lt; Y &gt;, <a class="el" href="classcVariable.html">cVariable</a> &gt; &amp;poly)</td></tr>
<tr class="separator:a92998d9dc30249d38f164dc4ebc8abef"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;typename T&gt;<br/>
class cUnivarPolynomial&lt; T &gt;</h3>

<p>implements common operations on polynomials on top of BOOST polynomial class ! poly[0] is the free term ! poly[degree] can't be zero - the zero polynomial is the empty vector </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="af0fa0596f636515bcab1e2dedc2fde79"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classcUnivarPolynomial.html">cUnivarPolynomial</a>&lt; T &gt; <a class="el" href="classcUnivarPolynomial.html">cUnivarPolynomial</a>&lt; T &gt;::derivative </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>returns the derivative as a new polynomial </p>

</div>
</div>
<a class="anchor" id="a3aeaae886ae33ff00e9207847c68deb2"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classcUnivarPolynomial.html">cUnivarPolynomial</a>&lt; T &gt; &amp; <a class="el" href="classcUnivarPolynomial.html">cUnivarPolynomial</a>&lt; T &gt;::operator%= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classcUnivarPolynomial.html">cUnivarPolynomial</a>&lt; T &gt; &amp;&#160;</td>
          <td class="paramname"><em>poly</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>overload operator % to compute the polynomial division remainder implements the algorithm from Knuth vol2 </p>

</div>
</div>
<a class="anchor" id="a651a710f52fdd21136419d2c6fef5574"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T&gt; </div>
<div class="memtemplate">
template&lt;typename Y &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">T <a class="el" href="classcUnivarPolynomial.html">cUnivarPolynomial</a>&lt; T &gt;::operator() </td>
          <td>(</td>
          <td class="paramtype">const Y &amp;&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>overload operator () to evaluate the polynomial </p>

</div>
</div>
<a class="anchor" id="a4158585d1768e886c6802030f6ec128f"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classcUnivarPolynomial.html">cUnivarPolynomial</a>&lt; T &gt; &amp; <a class="el" href="classcUnivarPolynomial.html">cUnivarPolynomial</a>&lt; T &gt;::operator*= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classcUnivarPolynomial.html">cUnivarPolynomial</a>&lt; T &gt; &amp;&#160;</td>
          <td class="paramname"><em>poly</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>overload operator * to compute the polynomial multiplication </p>

</div>
</div>
<a class="anchor" id="a60558f674dbadb2d18e3406f4d45da0e"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classcUnivarPolynomial.html">cUnivarPolynomial</a>&lt; T &gt; &amp; <a class="el" href="classcUnivarPolynomial.html">cUnivarPolynomial</a>&lt; T &gt;::operator/= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classcUnivarPolynomial.html">cUnivarPolynomial</a>&lt; T &gt; &amp;&#160;</td>
          <td class="paramname"><em>poly</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>overload operator / to compute the polynomial division quotient implements the algorithm from Knuth vol2 </p>

</div>
</div>
<a class="anchor" id="a54e506b4fac4647cc8aad776ba131940"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="classcUnivarPolynomial.html">cUnivarPolynomial</a>&lt; T &gt;::operator== </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classcUnivarPolynomial.html">cUnivarPolynomial</a>&lt; T &gt; &amp;&#160;</td>
          <td class="paramname"><em>poly</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>overload operator == to compute the polynomial equality </p>

</div>
</div>
<a class="anchor" id="abd186b4aab94bf19bf33796df810785e"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">std::vector&lt; std::pair&lt; double, double &gt; &gt; <a class="el" href="classcUnivarPolynomial.html">cUnivarPolynomial</a>&lt; T &gt;::plotPoints </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>min</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>max</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>increment</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>returns a list of points used to plot a graph of the polynomial uses adaptive sampling to compute more points near high curvature areas </p>

</div>
</div>
<a class="anchor" id="a0d81e941a048c6ca649dd11d8a4cda8b"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">std::vector&lt; double &gt; <a class="el" href="classcUnivarPolynomial.html">cUnivarPolynomial</a>&lt; T &gt;::realZeros </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>returns the real zeros (double) of the polynomial </p>

</div>
</div>
<a class="anchor" id="a9203e9c2e0c7d1f4d70c13b08e37d5ff"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::vector&lt; double &gt; &amp; <a class="el" href="classcUnivarPolynomial.html">cUnivarPolynomial</a>&lt; T &gt;::solveRCubic </td>
          <td>(</td>
          <td class="paramtype">std::vector&lt; double &gt; &amp;&#160;</td>
          <td class="paramname"><em>zeros</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>get real zeros when the polynomial is cubic - using Cardano's formula </p>

</div>
</div>
<a class="anchor" id="a887727886c8d9ed3a789b10de1c50785"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::vector&lt; double &gt; &amp; <a class="el" href="classcUnivarPolynomial.html">cUnivarPolynomial</a>&lt; T &gt;::solveRQuadratic </td>
          <td>(</td>
          <td class="paramtype">std::vector&lt; double &gt; &amp;&#160;</td>
          <td class="paramname"><em>zeros</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>get real zeros when the function has the degree smaller or equal to 2 </p>

</div>
</div>
<a class="anchor" id="a936aa1a9e68b7005af72be0fbb2d91ac"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">std::vector&lt; <a class="el" href="classcUnivarPolynomial.html">cUnivarPolynomial</a>&lt; T &gt; &gt; <a class="el" href="classcUnivarPolynomial.html">cUnivarPolynomial</a>&lt; T &gt;::sturmSequence </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>returns the Sturm sequence corresponding to the polynomial used to compute real zeros </p>

</div>
</div>
<a class="anchor" id="a3faca94991f37531436883070bcc7f01"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="classcUnivarPolynomial.html">cUnivarPolynomial</a>&lt; T &gt;::sturmSignsNo </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>x0</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>get the number of sign changes of the sturm sequence in the point x0 </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="univar__polynomial_8h_source.html">univar_polynomial.h</a></li>
<li>univar_polynomial.cpp</li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="classcUnivarPolynomial.html">cUnivarPolynomial</a></li>
    <li class="footer">Generated on Tue Feb 25 2014 17:11:52 for SYMMETRY by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 </li>
  </ul>
</div>
</body>
</html>
